<template>
  <div class="mask" v-show="isShow">
    <div class="loading">
      <img src="../../assets/imgs/jiazai.gif" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      // 默认不显示
      isShow: false
    }
  }
}
</script>

<style lang="scss" scoped>
.mask {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
